import { XMLLoader } from "loader/XMLLoader";
import { ImageLoader } from "loader/ImageLoader";
import { DataLoader } from "loader/DataLoader";
import { SWFLoader } from "loader/SWFLoader";
import { MapDataLoader } from "loader/MapDataLoader";
import { JTALoader } from "loader/JTALoader";
import { XMLInfo } from "info/XMLInfo";
import { ImageInfo } from "info/ImageInfo";
import { DataInfo } from "info/DataInfo";
import { SWFInfo } from "info/SWFInfo";
import { MapDataInfo } from "info/MapDataInfo";
import { JTAInfo } from "info/JTAInfo";
//class FileType
    
    export  class FileType
    {
       

        public static getLoaderByType(arg1: string): Class
        {
            return FileType._classRef[arg1.toUpperCase()];
        }

        public static getLoaderInfoByType(arg1: string): Class
        {
            return FileType._classInfoRef[arg1.toUpperCase()];
        }

        
        {
            FileType._classRef = {".XML": XMLLoader, ".JPG": ImageLoader, ".PNG": ImageLoader, ".GIF": ImageLoader, ".DATA": DataLoader, ".SWF": SWFLoader, ".MPT": MapDataLoader, ".JTA": JTALoader};
            FileType._classInfoRef = {".XML": XMLInfo, ".JPG": ImageInfo, ".PNG": ImageInfo, ".GIF": ImageInfo, ".DATA": DataInfo, ".SWF": SWFInfo, ".MPT": MapDataInfo, ".JTA": JTAInfo};
        }

        private static /* var */_classRef: Object;

        private static /* var */_classInfoRef: Object;
    }
